from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    TicketViewSet, TicketAssignmentViewSet, 
    TicketActionViewSet, TicketStatusListView
)

router = DefaultRouter()
router.register(r'tickets', TicketViewSet)
router.register(r'assignments', TicketAssignmentViewSet)
router.register(r'actions', TicketActionViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('statuses/', TicketStatusListView.as_view({'get': 'list'}), name='ticket-statuses'),
]